using System;
using System.Collections.Generic;
using System.Text;
using System.Web.Mail;
using MeetingRoom.Domain;

namespace MeetingRoom.Service.Implementation
{
    public class EmailMessagingService : AbstractMessagingService
    {
        #region IMessagingService Members

        public override void Notify(MeetingRoom.Domain.Staff staff, string message)
        {
            MailMessage mail = new MailMessage();
            mail.From = "meetingroom@accenture.com";
            mail.To = staff.EnterpriseId;
            mail.Body = message;

            SmtpMail.Send(mail);
        }

        #endregion
    }
}
